package com.h3c.ptability.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum FlowCodeEnum {

    N1("N1", "月度承诺填写审核流程", "com.h3c.nem.service.ITbWorkerService", "com.h3c.nem.service.ITbApprovalRecordService", "getWxWorkerData", "wxApprove"),
    N2("N2", "月度考核流程", "com.h3c.nem.service.ITbWorkerService", "com.h3c.nem.service.ITbApprovalRecordService", "getWxWorkerData", "wxApprove"),
    N3("N3", "转正计划填写审核流程", "com.h3c.nem.service.ITbWorkerService", "com.h3c.nem.service.ITbApprovalRecordService", "getWxWorkerData", "wxApprove"),
    N4("N4", "转正考核评价流程", "com.h3c.nem.service.ITbWorkerService", "com.h3c.nem.service.ITbApprovalRecordService", "getWxWorkerData", "wxApprove"),
    N5("N5", "小任务流程", "com.h3c.nem.service.ITbFlowInstService", "com.h3c.nem.service.ITbFlowInstService", "getTaskInfoData", "taskFormSubmit"),
    ;
    /**
     * 流程编号，和枚举名相同
     */
    final private String flowCode;
    /**
     * 流程名称
     */
    final private String flowCodeName;
    /**
     * class 包名+类名 必须是bean
     */
    final private String clazzName;
    /**
     * class 包名+类名 必须是bean
     */
    final private String submitClazzName;
    /**
     * 获取信息方法名
     */
    final private String getMethodName;
    /**
     * 提交方法名
     */
    final private String submitMethodName;

    public static FlowCodeEnum getFormData(String flowCode) {
        return FlowCodeEnum.valueOf(flowCode);
    }

}
